<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/15/015
  Time: 16:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>1</title>
</head>
<body>
<h1>1</h1>
<%
pageContext.setAttribute("username","pageContext");
request.setAttribute("username","request");
session.setAttribute("username","session");
application.setAttribute("username","application");
%>
pageContext:<%=pageContext.getAttribute("username")%><br>
request:<%=request.getAttribute("username")%><br>
session:<%=session.getAttribute("username")%><br>
application:<%=application.getAttribute("username")%><br>
<%
        request.getRequestDispatcher("./2.jsp").forward(request,response);
%>
</body>
</html>
